using System;
//using System.Threading;
class MathExpression
{
    static void Main(string[] args)
    {
		//Culture
        //Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

		double n = double.Parse(Console.ReadLine());
		double m = double.Parse(Console.ReadLine());
		double p = double.Parse(Console.ReadLine());
		double result = ((n*n) + 1/(m*p) + 1337) / ( n - 128.523123123 * p) ;	
		double valueOfSin = Math.Floor(m%180); //round to bigger 0.12 to 1 or if it's negative - 0.12 to -1.
		if(m<0)
		{
			valueOfSin = Math.Ceiling(m%180); //round of smaller 0.12 to 0 or if it's negative - 0.12 to -1.
		}
		result+= ((Math.Sin(valueOfSin)));
		Console.WriteLine("{0:0.000000}",result);
	}
}